package ooday01;

public class ExtendsTest {
	public static void main(String[] args) {
		Student zg = new Student();
		zg.name = "张光";
		zg.age = 23;
		zg.address = "廊坊";
		zg.className = "jsd2560";
		zg.stuId = "001";
		zg.eat();
		zg.sleep();
		zg.sayHi();
		zg.study();
		
		Student ll = new Student("李林",25,"廊坊","jsd2560","001");
		ll.eat();
		ll.sleep();
		ll.sayHi();
		ll.study();
		
		
		Teacher zl = new Teacher();
		zl.name = "照亮";
		zl.age = 36;
		zl.address = "山东";
		zl.salry = 6000.0;
		zl.eat();
		zl.sleep();
		zl.sayHi();
		zl.teach();
		
		Teacher zn = new Teacher("张宁",36,"山东",6000.0);
		zn.eat();
		zn.sleep();
		zn.sayHi();
		zn.teach();
		
		
		Doctor qn = new Doctor();
		qn.name = "七年";
		qn.age = 28;
		qn.address = "河南";
		qn.title = "";
		qn.eat();
		qn.sleep();
		qn.sayHi();
		qn.cut();
		
		Doctor qb = new Doctor("七百",28,"河南","");
		qb.eat();
		qb.sleep();
		qb.sayHi();
		qb.cut();
		
	}
}
